package com.hopes.bizz.close.position.support;

import com.hopes.bizz.close.position.entity.ClosedHazardCarPositionHisEntity;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 定位数据定时人数处理接口
 * @time 2023/11/16 18:10
 */
public interface PositionTaskHandle {

    /**
     * 处理缓存数据
     * @return 结果
     */
    boolean handleCachePosition();

    /**
     * 处理队列数据
     * @return 结果
     */
    boolean handleQueuePosition();

    /**
     * 入队列
     * @param hisHazardCarPosition  历史数据
     * @return                      结果
     * @throws InterruptedException 异常
     */
    boolean offerQueuePosition(ClosedHazardCarPositionHisEntity hisHazardCarPosition) throws InterruptedException;


}
